import PlatDetail from '@/pages/PlatDetail'
import ForgetPassword from '@/pages/ForgetPassword'
import MyFollow from '@/pages/MyFollow'
import Master from '@/pages/Master'
import Vue from 'vue';
import Router from 'vue-router';
import News from '@/pages/News';
import Login from '@/pages/Login';
import Register from '@/pages/Register';
import NewDetail from '@/pages/NewDetail';
import Publish from '@/pages/Publish';
import test from '@/pages/test';
import CircleContent from '@/pages/CircleContent';
import CircleContent11 from '@/pages/CircleContent11';
import MySlef from '@/pages/MySlef';
import MyFans from '@/pages/MyFans';
import CircleDetail from '@/pages/CircleDetail';
import Circle from '@/pages/Circle';
import Content from '@/pages/Content';

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/old',
      name: 'index',
      component: News

    },
    {
      path: '/login',
      name: 'login',
      component: Login

    },
    {
      path: '/register',
      name: '注册',
      component: Register

    },
    {
      path: '/newDetail/:id',
      name: '咨询详情',
      component: NewDetail

    },
    {
      path: '/circleDetail/:id',
      name: '咨询详情',
      component: CircleDetail

    }, {
      path: '/test',
      name: '测试',
      component: test

    },
    {
      path: '/CircleContent',
      name: '圈子登录版',
      component: CircleContent

    },
    {
      path: '/MySlef/:id',
      name: '个人',
      component: MySlef
    }, {
      path: '/MyFollow/:id',
      name: '我关注的',
      component: MyFollow
    },
    {
      path: '/MyFans/:id',
      name: '粉丝',
      component: MyFans


    },
    {
      path: '/publish',
      name: '写文章',
      component: Publish
    },
    {
      path: '/circle',
      name: 'circleIndex',
      component: Circle
    }
    , {
      path: '/platDetail/:id/:name',
      name: '板块详情',
      component: PlatDetail
    }
    , {
      path: '/forgetPassword',
      name: '板块详情',
      component: ForgetPassword
    }
    , {
      path: '/Master/:id',
      name: '板块详情',
      component: Master
    }
    , {
      path: '/',
      name: '板块详情',
      component: Content
    }
    , {
      path: '/c',
      name: '板块详情',
      component: CircleContent11
    }
  ]
});
